projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a824da6
)
dragdest: Use format matching APIs
author
Benjamin Otte
<otte@redhat.com>
Sat, 15 Feb 2020 19:26:55 +0000
(20:26 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 15 Feb 2020 20:04:33 +0000
(21:04 +0100)
gtk/gtkdragdest.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdragdest.c
b/gtk/gtkdragdest.c
index 6fd1480b8cc169a9e3967e2054344f4c025b826f..9d8489d45e90ce1885fc2fbf4f5b83b3c19df0cc 100644
(file)
--- a/
gtk/gtkdragdest.c
+++ b/
gtk/gtkdragdest.c
@@
-566,14
+566,12
@@
gtk_drop_target_accept (GtkDropTarget *dest,
{
GdkDragAction dest_actions;
GdkDragAction actions;
- GdkAtom target;
dest_actions = gtk_drop_target_get_actions (dest);
actions = dest_actions & gdk_drop_get_actions (drop);
- target = gtk_drop_target_match (dest, drop);
- return actions &&
target
;
+ return actions &&
gdk_content_formats_match (dest->formats, gdk_drop_get_formats (drop))
;
}
static void